/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hydms.registration.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

/**
 * 报修登记Entity
 * @author 刘健
 * @version 2017-04-05
 */
public class DmsRegistration extends DataEntity<DmsRegistration> {
	
	private static final long serialVersionUID = 1L;
	private String studentRepairName;		// 报修人
	private String dormitoryNumber;		// 宿舍号
	private String repairName;		// 修理人
	private Date repairDate;		// 报修日期
	private String repairThings;		// 报修物品
	private String repairResult;		// 报修结果
	
	public DmsRegistration() {
		super();
	}

	public DmsRegistration(String id){
		super(id);
	}

	@Length(min=1, max=64, message="报修人长度必须介于 1 和 64 之间")
	@ExcelField(title="报修人",type=0, align=2, sort=10)
	public String getStudentRepairName() {
		return studentRepairName;
	}

	public void setStudentRepairName(String studentRepairName) {
		this.studentRepairName = studentRepairName;
	}
	
	@Length(min=0, max=64, message="宿舍号长度必须介于 0 和 64 之间")
	@ExcelField(title="宿舍号",type=0, align=2, sort=20)
	public String getDormitoryNumber() {
		return dormitoryNumber;
	}

	public void setDormitoryNumber(String dormitoryNumber) {
		this.dormitoryNumber = dormitoryNumber;
	}
	
	@Length(min=0, max=64, message="修理人长度必须介于 0 和 64 之间")
	@ExcelField(title="修理人",type=0, align=2, sort=30)
	public String getRepairName() {
		return repairName;
	}

	public void setRepairName(String repairName) {
		this.repairName = repairName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	@ExcelField(title="报修日期",type=0, align=2, sort=40)
	public Date getRepairDate() {
		return repairDate;
	}

	public void setRepairDate(Date repairDate) {
		this.repairDate = repairDate;
	}
	
	@Length(min=0, max=64, message="报修物品长度必须介于 0 和 64 之间")
	@ExcelField(title="报修物品",type=0, align=2, sort=50)
	public String getRepairThings() {
		return repairThings;
	}

	public void setRepairThings(String repairThings) {
		this.repairThings = repairThings;
	}
	
	@Length(min=0, max=64, message="报修结果长度必须介于 0 和 64 之间")
	@ExcelField(title="报修结果",type=0, align=2, sort=60)
	public String getRepairResult() {
		return repairResult;
	}

	public void setRepairResult(String repairResult) {
		this.repairResult = repairResult;
	}
	
}